home *** CD-ROM | disk | FTP | other *** search
/ Macintosh Technology Seed 1996 September / Macintosh Technology Seed (September 1996) (CDRM1437020).ISO / pc / qd3d15d6 / 15d6_sdk.exe / QD3D Win32 1.5d6 / Interfaces / QD3DString.h < prev    next >
C/C++ Source or Header  |  1996-08-21  |  2KB  |  84 lines

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        QD3DString.h                                              **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:                                                                **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **     Copyright (C) 1994-1996 Apple Computer, Inc. All rights reserved.     **
  11.  **                                                                          **
  12.  **                                                                          **
  13.  *****************************************************************************/
  14. #ifndef QD3DString_h
  15. #define QD3DString_h
  16.  
  17. #if defined(PRAGMA_ONCE) && PRAGMA_ONCE
  18.     #pragma once
  19. #endif  /*  PRAGMA_ONCE  */
  20.  
  21. #if defined(THINK_C) || defined(__SC__)
  22.     #pragma options(!pack_enums, !align_arrays)
  23.     #pragma SC options align=power
  24. #elif defined(__MWERKS__)
  25.     #pragma enumsalwaysint on
  26.     #pragma align_array_members off
  27.     #pragma options align=native
  28. #elif defined(__PPCC__)
  29.     #pragma options align=power
  30. #elif defined(__xlc) || defined(__xlC) || defined(__xlC__) || defined(__XLC121__)
  31.     #pragma options enum=int
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif /*  __cplusplus  */
  37.  
  38.  
  39. /******************************************************************************
  40.  **                                                                             **
  41.  **                                String Routines                                 **
  42.  **                                                                             **
  43.  *****************************************************************************/
  44.  
  45. QD3D_EXPORT TQ3ObjectType Q3String_GetType(
  46.     TQ3StringObject        stringObj);
  47.  
  48.  
  49. /******************************************************************************
  50.  **                                                                             **
  51.  **                        C String Routines                                     **
  52.  **                                                                             **
  53.  *****************************************************************************/
  54.  
  55. QD3D_EXPORT TQ3StringObject Q3CString_New(
  56.     const char                *string);
  57.  
  58. QD3D_EXPORT TQ3Status Q3CString_GetLength(
  59.     TQ3StringObject            stringObj,
  60.     unsigned long            *length);
  61.  
  62. QD3D_EXPORT TQ3Status Q3CString_SetString(
  63.     TQ3StringObject            stringObj,
  64.     const char                *string);
  65.  
  66. QD3D_EXPORT TQ3Status Q3CString_GetString(
  67.     TQ3StringObject            stringObj,
  68.     char                    **string);
  69.  
  70. QD3D_EXPORT TQ3Status Q3CString_EmptyData(
  71.     char                    **string);
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif /*  __cplusplus  */
  76.  
  77. #if defined(__MWERKS__)
  78.     #pragma enumsalwaysint reset
  79. #elif defined(__xlc) || defined(__xlC) || defined(__xlC__) || defined(__XLC121__)
  80.     #pragma options enum=reset
  81. #endif
  82.  
  83. #endif  /*  QD3DString_h  */
  84.